<?php	

require_once 'Zend/Db/Adapter/Pdo/Mysql.php';
$db = new Zend_Db_Adapter_Pdo_Mysql(array(
		    'host'     => '127.0.0.1',
		    'username' => 'root',
		    'password' => 'flashmaster',
		    'dbname'   => 'jqalendar'
		));
		$select = $db->select();
$select->from('events');
$query = $db->query($select);
			$response['results'] = $query->fetchAll();
			
			echo json_encode($response);